package com.woniu.user.service;

import com.woniu.user.dto.AddressDTO;
import com.woniu.user.pojo.Address;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.user.vo.AddressVO;
import com.woniu.user.vo.UserLoginVO;

import java.util.List;

/**
 * <p>
 * 地址表 服务类
 * </p>
 *
 * @author hushunlai
 * @since 2023-05-22
 */
public interface IAddressService extends IService<Address> {

    Boolean addAddress(AddressDTO addressDTO, UserLoginVO userLoginVO);

    List<AddressVO> listAddress(UserLoginVO userLoginVO);

    Boolean updateAddress(AddressDTO addressDTO, UserLoginVO userLoginVO);

    Boolean deleteAddress(AddressDTO addressDTO, UserLoginVO userLoginVO);

    Address getAddress(Integer addressId, String mobile);

    AddressVO getDefaultAddress(String mobile);
}
